package br.urca.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "Requerimento")
public class Requerimento {
	
	@Id
	@Column(name = "Codigo", columnDefinition = "VARCHAR(2)")
	private String codigo;
	
	@Column(name = "Descricao", columnDefinition = "VARCHAR(50)")
	private String descricao;
	
	@Column(name = "Valor")
	private Double valor;
	
	@Column(name = "Restringir", columnDefinition = "CHAR(1)")
	private String restringir;
	
	@Column(name = "Corresponde", columnDefinition = "CHAR(1)")
	private String corresponde;
	
	@Deprecated public Requerimento() { }

	public Requerimento(String codigo, String descricao, Double valor,
			String restringir, String corresponde) {
		super();
		this.codigo = codigo;
		this.descricao = descricao;
		this.valor = valor;
		this.restringir = restringir;
		this.corresponde = corresponde;
	}

	public String getCodigo() {
		return codigo;
	}

	public void setCodigo(String codigo) {
		this.codigo = codigo;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public Double getValor() {
		return valor;
	}

	public void setValor(Double valor) {
		this.valor = valor;
	}

	public String getRestringir() {
		return restringir;
	}

	public void setRestringir(String restringir) {
		this.restringir = restringir;
	}

	public String getCorresponde() {
		return corresponde;
	}

	public void setCorresponde(String corresponde) {
		this.corresponde = corresponde;
	}
	
}
